package cn.mineserv.video.videoordersystem.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.mineserv.video.videoordersystem.dao.MediaDao;
import java.util.List;
import cn.mineserv.video.videoordersystem.model.MediaExample;
import cn.mineserv.video.videoordersystem.model.Media;
@Service
public class MediaService extends ServiceImpl<MediaDao, Media> {

    
    public long countByExample(MediaExample example) {
        return baseMapper.countByExample(example);
    }
    
    public int deleteByExample(MediaExample example) {
        return baseMapper.deleteByExample(example);
    }
    
    public List<Media> selectByExample(MediaExample example) {
        return baseMapper.selectByExample(example);
    }
    
    public int updateByExampleSelective(Media record,MediaExample example) {
        return baseMapper.updateByExampleSelective(record,example);
    }
    
    public int updateByExample(Media record,MediaExample example) {
        return baseMapper.updateByExample(record,example);
    }
    
    public int updateBatch(List<Media> list) {
        return baseMapper.updateBatch(list);
    }
    
    public int updateBatchSelective(List<Media> list) {
        return baseMapper.updateBatchSelective(list);
    }
    
    public int batchInsert(List<Media> list) {
        return baseMapper.batchInsert(list);
    }
    
    public int insertOrUpdate(Media record) {
        return baseMapper.insertOrUpdate(record);
    }
    
    public int insertOrUpdateSelective(Media record) {
        return baseMapper.insertOrUpdateSelective(record);
    }
}
